package com.ruoyi.lowcode.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投票活动对象 vote_activity
 * 
 * @author ruoyi
 * @date 2023-06-28
 */
public class VoteActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 投票活动名（例如，优秀职工投票） */
    @Excel(name = "投票活动名", readConverterExp = "例=如，优秀职工投票")
    private String activityName;

    /** 投票活动描述 */
    @Excel(name = "投票活动描述")
    private String activityContent;

    /** 投票开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投票开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityStart;

    /** 投票结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投票结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityEnd;

    /** 候选人信息 */
    private List<VoteCandidate> voteCandidateList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }
    public void setActivityContent(String activityContent) 
    {
        this.activityContent = activityContent;
    }

    public String getActivityContent() 
    {
        return activityContent;
    }
    public void setActivityStart(Date activityStart) 
    {
        this.activityStart = activityStart;
    }

    public Date getActivityStart() 
    {
        return activityStart;
    }
    public void setActivityEnd(Date activityEnd) 
    {
        this.activityEnd = activityEnd;
    }

    public Date getActivityEnd() 
    {
        return activityEnd;
    }

    public List<VoteCandidate> getVoteCandidateList()
    {
        return voteCandidateList;
    }

    public void setVoteCandidateList(List<VoteCandidate> voteCandidateList)
    {
        this.voteCandidateList = voteCandidateList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("activityName", getActivityName())
            .append("activityContent", getActivityContent())
            .append("activityStart", getActivityStart())
            .append("activityEnd", getActivityEnd())
            .append("voteCandidateList", getVoteCandidateList())
            .toString();
    }
}
